package com.xikeda.controller;

import com.xikeda.model.DeliveryTable;
import com.xikeda.service.imp.confirmreceiptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author Xiao Linqing
 * @date 2020/6/8 14:47
 */
@Controller
public class confirmreceiptController {
    @Resource
    private confirmreceiptService confirmreceiptService;
    public com.xikeda.service.imp.confirmreceiptService getConfirmreceiptService() {
        return confirmreceiptService;
    }
    @Autowired
    public void setConfirmreceiptService(com.xikeda.service.imp.confirmreceiptService confirmreceiptService) {
        this.confirmreceiptService = confirmreceiptService;
    }
    @RequestMapping("/receipt")
    @ResponseBody
    public String receipt1(HttpServletRequest request, HttpServletResponse response){
        String delivery_id=request.getParameter("delivery_id");
        List<DeliveryTable> list=this.getConfirmreceiptService().receipt(delivery_id);

        return "resiciptmaster";
    }
    @RequestMapping("test11")
    public String InquiryExpress1(HttpServletRequest request, HttpServletResponse response){
        return "demo";
    }

}
